<?php
define ( 'ROOT', dirname ( __FILE__ ) );
define ( 'WEB', '/huang-tang' );
require_once './lib/base.class.php';
Base::init ( dirname ( __FILE__ ) . '/include/config.ini' );
if (is_file ( './action/' . trim ( $_GET ['a'] . '.php' ) )) {
	require_once './action/' . trim ( $_GET ['a'] ) . '.php';
} else {
	require_once './action/index.php';
}
$oAction = new Action ( );
$sMethod = trim ( $_GET ['m'] );
if (method_exists ( $oAction, $sMethod )) {
	$oAction->$sMethod();
} else {
	$oAction->index ();
}